<?php
/* 
Template Name: Projects
*/
?>


<?php get_header(); ?>

<div id="container">
	<div class="containerspacer">
    </div>
	
    <div class="welcome">
    	<!--
		<h1><?php the_title() ?></h1>
        -->
    	<div class="welcomeheadline" id="welcomeheadlineprojects">
   		</div>
    	<h3>These are some of the projects I&acute;ve done over the last few years. I Graduated from <a href="http://dkds.dk">Danmaks Designskole</a> little over 2 years ago, so I&acute;ve include some of my design school projects aswell because they possess some technical and artistic qualities I haven&acute;t had a chance to show in my professional carrer yet.</h3>
    </div>
    
   	<div id="bigfeaturedprojects">
    	<!--
    	<h2><?php _e('Featured Projects'); ?></h2>
        -->        
        <div id="bigfeaturedprojectsheadline">
    	</div>
    		
		<?php query_posts('category_name=Featured'); ?>    	
		<?php if(have_posts()): ?>
			<?php while(have_posts()) : the_post(); ?>    
    		<div class="bigfeaturedproject">  
            	<a href="<?php the_permalink(); ?>" title="<?php _e('Check out '); ?><?php the_permalink(); ?>">      	
            		<img class="bigfeaturedprojectthumbnail" src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>"/>
        	
            		<p class="projectname">
	    				<?php the_title(); ?>
           			</p>     
                </a>     
            
            	<p class="projectmetadata">
					<?php _e('Category&#58;'); ?> <?php the_category(', ') ?><?php _e('.'); ?>
				</p>          
        	</div>    
    	<?php endwhile; ?>       
    	<?php else: ?>        
    	<?php endif; ?>
    </div>
    
    <div id="smallprojects">
    	<!--
    	<h2><?php _e('All Projects'); ?></h2>
        -->    
        <div id="smallprojectsheadline">
    	</div>
        
    	<?php query_posts('posts_per_page=100'); ?>
    	
       <?php if(have_posts()): ?>
			<?php while(have_posts()) : the_post(); ?>
    		
            <div class="smallproject">        	
           		<p class="smallprojectname">
           			<?php _e(' '); ?>
            		<a  href="<?php the_permalink(); ?>" title="<?php _e('Check out '); ?><?php the_title(); ?>">	
                		<?php the_title(); ?>
            		</a>  
            		<?php _e(' '); ?>
           		</p> 
            </div>
    	<?php endwhile; ?> 
    
    	<?php else: ?>       
    	<?php endif; ?>
    </div>
    
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
</body>  

</div>  

</html>